package com.cssy.xxkj.logic.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.cssy.xxkj.logic.entity.LogicPayItemDO;
import com.plat.helper.SearchConditions;

/**
 * 数据访问对象接口
 * @since 2014-10-08
 */
public interface LogicPayItemDAO {

    /**
     * 插入数据
     * @param logicPayItemDO
     * @return 插入数据的主键
     */
    public String insertLogicPayItemDO(LogicPayItemDO logicPayItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicPayItemDO
     * @return 查出的记录数
     */
    public Integer countLogicPayItemDOByExample(LogicPayItemDO logicPayItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicPayItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicPayItemDO(LogicPayItemDO logicPayItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicPayItemDO
     * @return 对象列表
     */
    public List<LogicPayItemDO> findListByExample(LogicPayItemDO logicPayItemDO) throws DataAccessException;

    /**
     * 根据主键获取logicPayItemDO
     * @param id
     * @return logicPayItemDO
     */
    public LogicPayItemDO findLogicPayItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicPayItemDOByPrimaryKey(String id) throws DataAccessException;

    public List<LogicPayItemDO> find(SearchConditions scs) throws DataAccessException;
    
    public Integer count(SearchConditions scs) throws DataAccessException;
    
    public List<LogicPayItemDO> findItemListByMap(Map<String, Object> paramMap) throws DataAccessException;

}